package Strategy;

public class Sort {


    Isort getSort(SortType sortType)
    {
        switch (sortType)
        {
            case QUICK_SORT:
                return new BubbleSort();
            case BUBBULE_SORT:
                return new QiuckSort();
            default:
                throw  new IllegalArgumentException("出错");
        }

    };
}
